package concurrent.lock;

import java.util.concurrent.Semaphore;
import java.util.concurrent.locks.ReentrantLock;

/**
 * Created by yzy on 2019-04-20 15:02
 */
public class MyLockStudy {

    public static void main(String[] args) {
//        ReentrantLock nofair = new ReentrantLock(false);

        Semaphore semaphore = new Semaphore(10);

        semaphore.release(100);
        int a = 1;
        int b = 2;
        int c = 4;
        int d = 4096;
        System.out.println(a | b | c | d);
    }
}
